import * as YvanUI from 'yvan-ui-wotu'

interface Ref {
    t1: YvanUI.Text,
    t2: YvanUI.Text
}

const React = YvanUI.React
const {Card} = YvanUI.Antd
const Observer = YvanUI.Observer
const _ = YvanUI.lodash

export default class Simple4 extends YvanUI.Scope<void, Ref> {
    vjson = {
        title: '极简-fieldset',
        items: [
            {
                view: 'form',
                debug: 'main',
                ref: 'theform',
                items: [
                    {
                        view: 'card',
                        rows: [
                            {
                                view: 'fieldset',
                                title:'基础属性',
                                rows:[
                                    {
                                        cols:[
                                            {
                                                view: 'number',
                                                bind: 'main.repeats',
                                                label: '压测数量',
                                                required: true
                                            },
                                            {
                                                view: 'number',
                                                bind: 'main.repeats',
                                                label: '压测数量',
                                                required: true
                                            },
                                            {
                                                view: 'number',
                                                bind: 'main.repeats',
                                                label: '压测数量',
                                                required: true
                                            },
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ],
            }
        ]
    }

    onRender() {
        window['Simple4'] = this
    }
}